<template>
	<view class="goods">
		<good-item v-for="(item, index) in goodsType" :key="index" :Goods="item" class="a"></good-item>
	</view>
</template>

<script>
	import goodItem from './goods-item.vue'
	export default {
		components:{
			goodItem,
		},
		props: {
			// 商品数量
			goodsType: {
				type: Array,
				default () {
					return []
				}
			}
		},
	}
</script>

<style lang="less">
	.goods{
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;	
		align-content: center;
		padding-top: 50rpx;
		box-sizing: border-box;
		overflow: hidden;
		/* #ifdef MP-WEIXIN */
		.a{
			width: 50%;
		}
		/* #endif */
	}
</style>
